<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="m" uri="/cutm_tags"%>

<head>
<title>添加联办单位</title>
<link rel="stylesheet"
	href="<s:url value="/common/css/datepicker.css"/>" type="text/css" />
<script type="text/javascript"
	src="<s:url value="/common/scripts/ui.datepicker.js"/>"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#editFirmForm").vaildAjax(function(data){
		if(data.charAt(0)=='e'){
			alert(data.substring(1));
		}else{
			alert('操作成功！');
			$('input[name=firm.id]').val(data)
			BaseJs.setReadonly();
		}
	});
});

</script>
</head>
<body>
<h2 class="title">联办单位信息</h2>
<s:form id="editFirmForm" action="firm/EditFirm" method="post">
	<s:hidden name="firm.id" />
	<table class="form">
		<tr>
			<th width="20%"><span class="hint">*</span>单位名称：</th>
			<td><s:textfield name="firm.name" cssClass="rule[required]"
				cssStyle="width:350" /></td>
			<th width="20%"><span class="hint">*</span>支持金额：</th>
			<td><s:textfield name="firm.amount" cssClass="rule[required number]"
				cssStyle="width:350" /></td>
		</tr>
		<tr>
			<th><span class="hint">*</span>开始时间：</th>
			<td><m:date name="firm.startDate" time="true" cssClass="rule[required datetime]" />
			</td>
			<th><span class="hint">*</span>结束时间：</th>
			<td><m:date name="firm.endDate" time="true" cssClass="rule[required datetime]" />
			</td>
		</tr>
		<tr>
			<th><span class="hint">*</span>负责人：</th>
			<td><s:textfield name="firm.linkMan" cssClass="rule[required]"
				cssStyle="width:350" /></td>
			<th><span class="hint">*</span>联系电话：</th>
			<td><s:textfield name="firm.phone" cssClass="rule[required tel]"
				cssStyle="width:350" /></td>
		</tr>
			<tr>
			<th><span class="hint">*</span>地址：</th>
			<td colspan="3"><s:textfield name="firm.address" cssClass="rule[required]"
				cssStyle="width:950" /></td>
		</tr>
	</table>
	<div class="btnGroup"><input type="submit" value="提交" /> <input
		type="button" value="返回列表" onclick="BaseJs.toAction('firm/ListFirm');" /></div>
</s:form>
</body>